package com.carrara.helloworld;

import java.util.Scanner;

public class Ghyp {

	/**
	 * @param args
	 */
	public static void main(String[] args)
	{
		System.out.println("Username:");
		int useracc = 0;

		while (useracc < 1) 
		{
			Scanner user = new Scanner(System.in);
			String username = user.next();

			if (username.equals("joe9243")) 
			{
				int accept = 0;
				while (accept < 1) 
				{
					useracc += 1;
					System.out.println("Password:");

					Scanner pass = new Scanner(System.in);
					String password = pass.next();

					if (password.equals("derp123")) 
					{
						accept += 1;
						System.out.println("Welcome, joe9243.");
					} 
					else 
					{
						System.out.println("Wrong password.");
					}
				}
			} 
			else 
			{
				System.out.println("This account is not registered.");
				System.out.println("Username:");
			}

		}
		System.out.println("Account Setup:");

	}
}
